<?php	require_once ($_SERVER['DOCUMENT_ROOT']. "/_config/config.php");		require_once(MODEL_DIR.'/product_model.php');	require_once(MODEL_DIR.'/product_model.php');	require_once(HELPER_DIR.'/helper.php');		$id = $_GET['id'];	$page = PAGE_PRODUCT;	if($id >= 0)	{		$productValue = GetProductById($id);		$typeURL = TypeUrl($productValue);		$referArr = GetProductReferById($id);		$photoArr = array();				$photoArr[] = $productValue['product_img2'];		$photoArr[] = $productValue['product_img3'];		$photoArr[] = $productValue['product_img4'];		$photoArr[] = $productValue['product_img5'];				$isPalette = false;		foreach ($referArr as $value)		{			if($value['product_refer_img'])			{				$isPalette = true;				break;			}		}				require_once('product_view.phtml');	}?>